var Adv_skd=require("./Adv_skd")
var e = require;
var t = module;
var o = exports;
var n,
    i = o,
    a =
        ((n = function (e, t) {
            return (n =
                Object.setPrototypeOf ||
                ({__proto__: []} instanceof Array &&
                    function (e, t) {
                        e.__proto__ = t;
                    }) ||
                function (e, t) {
                    for (var o in t) t.hasOwnProperty(o) && (e[o] = t[o]);
                })(e, t);
        }),
        function (e, t) {
            function o() {
                this.constructor = e;
            }
            n(e, t), (e.prototype = null === t ? Object.create(t) : ((o.prototype = t.prototype), new o()));
        }),
    r = function (e, t, o, n) {
        var i,
            a = arguments.length,
            r = a < 3 ? t : null === n ? (n = Object.getOwnPropertyDescriptor(t, o)) : n;
        if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(e, t, o, n);
        else
            for (var s = e.length - 1; s >= 0; s--)
                (i = e[s]) && (r = (a < 3 ? i(r) : a > 3 ? i(t, o, r) : i(t, o)) || r);
        return a > 3 && r && Object.defineProperty(t, o, r), r;
    };
Object.defineProperty(i, "__esModule", {value: !0});
var s,
    c,
    l = e("BaseComponent"),
    d = cc._decorator,
    u = d.ccclass,
    p = d.property;
((c = s || (s = {})).yun1 = "yun1"), (c.yun2 = "yun2");
var h = (function (e) {
    function t() {
        var t = (null !== e && e.apply(this, arguments)) || this;
        return (t.node_loading_sprite = null), (t.yunAni = null), t;
    }
    var o;
    return (
        a(t, e),
        (o = t),
        (t.prototype.start = function () {
            console.log("加载88")

            var e = this;

            o.oldLoadingView && (o.oldLoadingView.destroy(), (o.oldLoadingView = null)),
                (o.oldLoadingView = this.node),
                this.scheduleOnce(function () {
                    e.param.timeOutCallFunc && e.param.timeOutCallFunc(),
                        o.oldLoadingView.destroy(),
                        (o.oldLoadingView = null);
                }, this.param.outTime),
                this.yunAni.playAnimation(s.yun1, 1);

        }),
        (t.prototype.customerDestory = function () {
            var e = this;
            e.node.destroy(),
                this.yunAni.playAnimation(s.yun2, 1),
                this.yunAni.once(
                    dragonBones.EventObject.COMPLETE,
                    function () {
                        e.node.destroy();
                    },
                    this
                );
        }),
        (t.oldLoadingView = null),
        r([p(cc.Node)], t.prototype, "node_loading_sprite", void 0),
        r([p(dragonBones.ArmatureDisplay)], t.prototype, "yunAni", void 0),
        (o = r([u], t))
    );
})(l.default);
i.default = h;
